(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4231],{67492:function(t,n,r){"use strict";r.d(n,{kS:function(){return c},ri:function(){return p},wv:function(){return f},xN:function(){return h}});var e=r(85893),o=r(67294);let u=(0,o.createContext)({spotId:null}),i=(t=t=>t)=>t((0,o.useContext)(u)),a=({performBEDHandshakeCallback:t,userId:n})=>new Promise((r,e)=>{let o=async()=>{let o=async(n,r)=>{try{let e=await t(n);e&&await r(e)}catch(t){throw console.error("startTTH - error with performBEDHandshakeCallback",t),t}};try{if(window?.SPOTIM?.startTTH){let t=await window.SPOTIM.startTTH({callback:o,userId:n});return void r(t)}throw Error("startTTH - window.SPOTIM.startTTH is not visible on window")}catch(t){console.error("startTTH - client side start sso failed with",t),e(t)}};if(window?.SPOTIM?.startTTH)o();else{let t=async()=>{o(),document.removeEventListener("spot-im-api-ready",t)};document.addEventListener("spot-im-api-ready",t,!1)}}),c=()=>new Promise((t,n)=>{let r=async()=>{try{if(window.SPOTIM&&window.SPOTIM.logout){let n=await window.SPOTIM.logout();return void t(n)}throw Error("logout TTH - window.SPOTIM.logout is not visible on window")}catch(t){console.error("logout TTH - logout failed",t),n(t)}};if(window.SPOTIM&&window.SPOTIM.logout)r();else{let t=async()=>{r(),document.removeEventListener("spot-im-api-ready",t)};document.addEventListener("spot-im-api-ready",t,!1)}}),s=({authentication:t})=>((t=>{let{userId:n,performBEDHandshakeCallback:r,onUserChanged:e,onError:u}=t;(0,o.useEffect)(()=>{n&&r?a({performBEDHandshakeCallback:r,userId:n}).then(e).catch(u):c().then(e).catch(u)},[n])})(t),null),l=t=>{(0,o.useEffect)(()=>{(({spotId:t,hostEl:n,autoRun:r=!1,onLoad:e=()=>{},onError:o=()=>{},...u})=>{if(document.querySelector('script[data-spotim-module="spotim-launcher"]'))return;let i=n||document.body,a=document.createElement("script");a.src=`https://launcher.spot.im/spot/${t}`,a.async=!0,a.onload=e,a.onerror=o,a.dataset.spotimModule="spotim-launcher",a.dataset.spotimAutorun=String(r),Object.entries(u).forEach(([t,n])=>{n&&(a.dataset[t]=String(n))}),i.appendChild(a)})(t)},[])},d=({spotId:t,children:n,...r})=>{let o=i(),u=t||o.spotId;return u?(l({...o,...r,spotId:u}),(0,e.jsx)(e.Fragment,{children:n})):(document.dispatchEvent(new CustomEvent("ow-event",{detail:{type:"error",payload:{msg:"[OpenWeb] Couldn't find spot-id for OpenWeb products."}}})),null)},f=({spotId:t,authentication:n,tracking:r={},children:i})=>((0,o.useEffect)(()=>((t={})=>{let n=n=>{let{type:r}=n.detail;t[r]?.(n)};return document.addEventListener("ow-sdk-event",n),()=>document.removeEventListener("ow-sdk-event",n)})(r),[r]),(0,e.jsxs)(u.Provider,{value:{spotId:t},children:[!!n&&(0,e.jsx)(s,{authentication:n}),(0,e.jsx)(d,{children:i})]})),p=({spotId:t,postId:n,postUrl:r,articleTags:o,socialReviews:u,theme:i,authorId:a,scrollToComment:c,scrollToReply:s,...l})=>{let f=o?Array.isArray(o)?o.join(","):o:null;return(0,e.jsx)(d,{spotId:t,children:(0,e.jsx)("div",{...l,"data-spotim-module":"conversation","data-post-id":n,"data-post-url":r,"data-article-tags":f,"data-social-reviews":u,"data-theme":i,"data-author-id":a,"data-spot-im-scroll-to-comment":c,"data-spot-im-scroll-to-reply":s})})},h=({spotId:t,postId:n,...r})=>(0,e.jsx)(d,{spotId:t,children:(0,e.jsx)("span",{...r,"data-spotim-module":"messages-count",className:`spot-im-replies-count ${r.className||""}`,"data-post-id":n})})},94311:function(t,n,r){var e=r(69877);t.exports=function(t){var n=t.length;return n?t[e(0,n-1)]:void 0}},84992:function(t,n,r){var e=r(94311),o=r(52628);t.exports=function(t){return e(o(t))}},67740:function(t,n,r){var e=r(67206),o=r(98612),u=r(3674);t.exports=function(t){return function(n,r,i){var a=Object(n);if(!o(n)){var c=e(r,3);n=u(n),r=function(t){return c(a[t],t,a)}}var s=t(n,r,i);return s>-1?a[c?n[s]:s]:void 0}}},13311:function(t,n,r){var e=r(67740)(r(30998));t.exports=e},30998:function(t,n,r){var e=r(41848),o=r(67206),u=r(40554),i=Math.max;t.exports=function(t,n,r){var a=null==t?0:t.length;if(!a)return -1;var c=null==r?0:u(r);return c<0&&(c=i(a+c,0)),e(t,o(n,3),c)}},95534:function(t,n,r){var e=r(94311),o=r(84992),u=r(1469);t.exports=function(t){return(u(t)?e:o)(t)}},78450:function(t,n,r){"use strict";r.d(n,{Z:function(){return i}});var e=r(63024),o=r(66381),u=r(50568);function i(t,n){return(0,u.Z)(2,arguments),new Date((0,o.Z)(t).getTime()+(0,e.Z)(n))}},64201:function(t,n,r){"use strict";r.d(n,{Z:function(){return i}});var e=r(63024),o=r(78450),u=r(50568);function i(t,n){return(0,u.Z)(2,arguments),function(t,n){(0,u.Z)(2,arguments);var r=(0,e.Z)(n);return(0,o.Z)(t,36e5*r)}(t,-(0,e.Z)(n))}},45363:function(t,n,r){"use strict";n.h6=void 0;var e=r(82342);Object.defineProperty(n,"h6",{enumerable:!0,get:function(){return e.jsonLdScriptProps}})},82342:function(t,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.helmetJsonLdProp=n.jsonLdScriptProps=n.JsonLd=void 0;let e=r(67294);function o(t,n={}){return{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(t,c,n.space)}}}n.JsonLd=function(t){return e.createElement("script",Object.assign({},o(t.item,t)))},n.jsonLdScriptProps=o,n.helmetJsonLdProp=function(t,n={}){return{type:"application/ld+json",innerHTML:JSON.stringify(t,c,n.space)}};let u=Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"}),i=RegExp(`[${Object.keys(u).join("")}]`,"g"),a=t=>u[t],c=(t,n)=>{switch(typeof n){case"object":if(null===n)return;return n;case"number":case"boolean":case"bigint":return n;case"string":return n.replace(i,a);default:return}}},24347:function(t,n,r){"use strict";var e=r(34774),o=r(85893);n.Z=(0,e.Z)((0,o.jsx)("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1m-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1"}),"Forum")},82559:function(t,n,r){"use strict";var e=r(34774),o=r(85893);n.Z=(0,e.Z)((0,o.jsx)("path",{d:"m21.9 8.89-1.05-4.37c-.22-.9-1-1.52-1.91-1.52H5.05c-.9 0-1.69.63-1.9 1.52L2.1 8.89c-.24 1.02-.02 2.06.62 2.88.08.11.19.19.28.29V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6.94c.09-.09.2-.18.28-.28.64-.82.87-1.87.62-2.89m-2.99-3.9 1.05 4.37c.1.42.01.84-.25 1.17-.14.18-.44.47-.94.47-.61 0-1.14-.49-1.21-1.14L16.98 5zM13 5h1.96l.54 4.52c.05.39-.07.78-.33 1.07-.22.26-.54.41-.95.41-.67 0-1.22-.59-1.22-1.31zM8.49 9.52 9.04 5H11v4.69c0 .72-.55 1.31-1.29 1.31-.34 0-.65-.15-.89-.41-.25-.29-.37-.68-.33-1.07m-4.45-.16L5.05 5h1.97l-.58 4.86c-.08.65-.6 1.14-1.21 1.14-.49 0-.8-.29-.93-.47-.27-.32-.36-.75-.26-1.17M5 19v-6.03c.08.01.15.03.23.03.87 0 1.66-.36 2.24-.95.6.6 1.4.95 2.31.95.87 0 1.65-.36 2.23-.93.59.57 1.39.93 2.29.93.84 0 1.64-.35 2.24-.95.58.59 1.37.95 2.24.95.08 0 .15-.02.23-.03V19z"}),"Storefront")},9098:function(t,n,r){"use strict";r.d(n,{Z:function(){return M}});var e=r(82729),o=r(67294),u=r(90512),i=r(49348),a=r(93784),c=r(70917),s=r(26061),l=r(99551),d=r(63715),f=r(57480),p=r(1801);function h(t){return(0,p.ZP)("MuiSkeleton",t)}(0,f.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var m=r(85893);function v(){let t=(0,e._)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"]);return v=function(){return t},t}function g(){let t=(0,e._)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"]);return g=function(){return t},t}function y(){let t=(0,e._)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]);return y=function(){return t},t}function w(){let t=(0,e._)(["\n &::after {\n animation: "," 2s linear 0.5s infinite;\n }\n "]);return w=function(){return t},t}let Z=t=>{let{classes:n,variant:r,animation:e,hasChildren:o,width:u,height:a}=t;return(0,i.Z)({root:["root",r,e,o&&"withChildren",o&&!u&&"fitContent",o&&!a&&"heightAuto"]},h,n)},b=(0,c.F4)(v()),T=(0,c.F4)(g()),E="string"!=typeof b?(0,c.iv)(y(),b):null,I="string"!=typeof T?(0,c.iv)(w(),T):null,k=(0,s.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,n)=>{let{ownerState:r}=t;return[n.root,n[r.variant],!1!==r.animation&&n[r.animation],r.hasChildren&&n.withChildren,r.hasChildren&&!r.width&&n.fitContent,r.hasChildren&&!r.height&&n.heightAuto]}})((0,l.Z)(t=>{let{theme:n}=t,r=String(n.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",e=parseFloat(n.shape.borderRadius);return{display:"block",backgroundColor:n.vars?n.vars.palette.Skeleton.bg:(0,a.Fq)(n.palette.text.primary,"light"===n.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(e).concat(r,"/").concat(Math.round(e/.6*10)/10).concat(r),"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(n.vars||n).shape.borderRadius}},{props:t=>{let{ownerState:n}=t;return n.hasChildren},style:{"& > *":{visibility:"hidden"}}},{props:t=>{let{ownerState:n}=t;return n.hasChildren&&!n.width},style:{maxWidth:"fit-content"}},{props:t=>{let{ownerState:n}=t;return n.hasChildren&&!n.height},style:{height:"auto"}},{props:{animation:"pulse"},style:E||{animation:"".concat(b," 2s ease-in-out 0.5s infinite")}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:"linear-gradient(\n 90deg,\n transparent,\n ".concat((n.vars||n).palette.action.hover,",\n transparent\n )"),content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:I||{"&::after":{animation:"".concat(T," 2s linear 0.5s infinite")}}}]}}));var M=o.forwardRef(function(t,n){let r=(0,d.i)({props:t,name:"MuiSkeleton"}),{animation:e="pulse",className:o,component:i="span",height:a,style:c,variant:s="text",width:l,...f}=r,p={...r,animation:e,component:i,variant:s,hasChildren:!!f.children},h=Z(p);return(0,m.jsx)(k,{as:i,ref:n,className:(0,u.Z)(h.root,o),ownerState:p,...f,style:{width:l,height:a,...c}})})},75362:function(t,n,r){"use strict";r.d(n,{Z:function(){return s}});var e=r(67294),o=r(25269),u=r(5068),i=r(46658);let a=i.I?t=>{t()}:e.startTransition,c=t=>{let[,n]=(0,e.useState)({}),r=(0,e.useRef)(!1),o=(0,e.useRef)(t),u=(0,e.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,e.useCallback)(t=>{let e=!1,i=o.current;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&i[n]!==t[n]&&(i[n]=t[n],u.current[n]&&(e=!0));e&&!r.current&&n({})},[]);return(0,i.u)(()=>(r.current=!1,()=>{r.current=!0})),[o,u.current,a]},s=(0,o.xD)(u.ZP,()=>(t,n,r={})=>{let{mutate:u}=(0,o.kY)(),s=(0,e.useRef)(t),l=(0,e.useRef)(n),d=(0,e.useRef)(r),f=(0,e.useRef)(0),[p,h,m]=c({data:i.U,error:i.U,isMutating:!1}),v=p.current,g=(0,e.useCallback)(async(t,n)=>{let[r,e]=(0,i.s)(s.current);if(!l.current)throw Error("Can’t trigger the mutation: missing fetcher.");if(!r)throw Error("Can’t trigger the mutation: missing key.");let o=(0,i.m)((0,i.m)({populateCache:!1,throwOnError:!0},d.current),n),c=(0,i.o)();f.current=c,m({isMutating:!0});try{let n=await u(r,l.current(e,{arg:t}),(0,i.m)(o,{throwOnError:!0}));return f.current<=c&&(a(()=>m({data:n,isMutating:!1,error:void 0})),null==o.onSuccess||o.onSuccess.call(o,n,r,o)),n}catch(t){if(f.current<=c&&(a(()=>m({error:t,isMutating:!1})),null==o.onError||o.onError.call(o,t,r,o),o.throwOnError))throw t}},[]),y=(0,e.useCallback)(()=>{f.current=(0,i.o)(),m({data:i.U,error:i.U,isMutating:!1})},[]);return(0,i.u)(()=>{s.current=t,l.current=n,d.current=r}),{trigger:g,reset:y,get data(){return h.data=!0,v.data},get error(){return h.error=!0,v.error},get isMutating(){return h.isMutating=!0,v.isMutating}}})},81886:function(t,n,r){"use strict";r.d(n,{ZP:function(){return s}});var e={};r.r(e),r.d(e,{BRAND:function(){return a.cg},DIRTY:function(){return u.RC},EMPTY_PATH:function(){return u.h2},INVALID:function(){return u.UI},NEVER:function(){return a.C4},OK:function(){return u.OK},ParseStatus:function(){return u.Q9},Schema:function(){return a.V_},ZodAny:function(){return a.O8},ZodArray:function(){return a.p5},ZodBigInt:function(){return a.EG},ZodBoolean:function(){return a.pZ},ZodBranded:function(){return a.Gd},ZodCatch:function(){return a.ON},ZodDate:function(){return a.$s},ZodDefault:function(){return a.uE},ZodDiscriminatedUnion:function(){return a.Iy},ZodEffects:function(){return a.Xc},ZodEnum:function(){return a.K7},ZodError:function(){return c.jm},ZodFirstPartyTypeKind:function(){return a.pA},ZodFunction:function(){return a.b_},ZodIntersection:function(){return a.f9},ZodIssueCode:function(){return c.NL},ZodLazy:function(){return a.dT},ZodLiteral:function(){return a.SG},ZodMap:function(){return a.Ym},ZodNaN:function(){return a.Hu},ZodNativeEnum:function(){return a.Zl},ZodNever:function(){return a.$n},ZodNull:function(){return a.pV},ZodNullable:function(){return a.ng},ZodNumber:function(){return a.IV},ZodObject:function(){return a.CQ},ZodOptional:function(){return a.ak},ZodParsedType:function(){return i.$k},ZodPipeline:function(){return a.om},ZodPromise:function(){return a.Wx},ZodReadonly:function(){return a.ur},ZodRecord:function(){return a.KX},ZodSchema:function(){return a.I6},ZodSet:function(){return a.qA},ZodString:function(){return a.$T},ZodSymbol:function(){return a.tX},ZodTransformer:function(){return a.z2},ZodTuple:function(){return a._P},ZodType:function(){return a.DI},ZodUndefined:function(){return a.DY},ZodUnion:function(){return a.jp},ZodUnknown:function(){return a.Dy},ZodVoid:function(){return a.XE},addIssueToContext:function(){return u.KD},any:function(){return a.Yj},array:function(){return a.IX},bigint:function(){return a.Kv},boolean:function(){return a.O7},coerce:function(){return a.oQ},custom:function(){return a.PG},date:function(){return a.hT},datetimeRegex:function(){return a.wU},defaultErrorMap:function(){return o.jY},discriminatedUnion:function(){return a.VK},effect:function(){return a.cE},enum:function(){return a.Km},function:function(){return a.ZI},getErrorMap:function(){return o.Pr},getParsedType:function(){return i.FQ},instanceof:function(){return a.Pp},intersection:function(){return a.jV},isAborted:function(){return u.Hc},isAsync:function(){return u.S9},isDirty:function(){return u.eT},isValid:function(){return u.JY},late:function(){return a.wt},lazy:function(){return a.Vo},literal:function(){return a.i0},makeIssue:function(){return u.Xm},map:function(){return a.UI},nan:function(){return a.qn},nativeEnum:function(){return a.jb},never:function(){return a.Fi},null:function(){return a.lB},nullable:function(){return a.AG},number:function(){return a.Rx},object:function(){return a.Ry},objectUtil:function(){return i.Mg},oboolean:function(){return a.Ts},onumber:function(){return a.vs},optional:function(){return a.jt},ostring:function(){return a.Dk},pipeline:function(){return a.EU},preprocess:function(){return a.dj},promise:function(){return a.MC},quotelessJson:function(){return c.Zh},record:function(){return a.IM},set:function(){return a.t8},setErrorMap:function(){return o.DJ},strictObject:function(){return a.cf},string:function(){return a.Z_},symbol:function(){return a.NA},transformer:function(){return a.l4},tuple:function(){return a.bc},undefined:function(){return a.S1},union:function(){return a.G0},unknown:function(){return a._4},util:function(){return i.D5},void:function(){return a.Hc}});var o=r(47985),u=r(49971),i=r(56672),a=r(62734),c=r(79711),s=e}}]);